package com.hua.vo;

import com.hua.result.R;
import com.hua.result.ResultCodeEnum;
import lombok.Data;

import java.net.URL;
import java.net.URLClassLoader;

/**
 * @author ONE-X
 * @date 2020/11/11
 */
@Data
public class ResponseResult {
	private boolean success;
	private int code;
	private String message;

	public ResponseResult(R r) {
		this.success = r.getSuccess();
		this.code = r.getCode();
		this.message = r.getMessage();
	}

	public static ResponseResult fail(){
		return new ResponseResult(R.error());
	}
}
